package com.hcandtx.Bms.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hcandtx.Bms.bean.Ulog;
import com.hcandtx.Bms.service.IUlogService;

@Controller
@ResponseBody
public class UlogController {
	@Autowired
	IUlogService ulogService;
	
	@RequestMapping("/log/getUlogData")
	public List<Ulog>  getulogData() {
		List<Ulog> ulogList=ulogService.findAll();
		System.out.println(ulogList);
		return ulogList;
		
	}
	
	@RequestMapping("/log/deleteUlogData")
	public int deleteUlogData(int id) {
	int n=	ulogService.deleteById(id);
		return n;
		
	}
}
